﻿package frEngine.animateControler.colorControler
{
    import frEngine.animateControler.keyframe.*;

    public class ColorKeyFrame extends Object implements INodeKey
    {
        private var _frame:int = 0;
        public var colorOffsetR:Number = 0;
        public var colorOffsetG:Number = 0;
        public var colorOffsetB:Number = 0;
        private var _bezierVo:BezierVo;

        public function ColorKeyFrame(param1:int, param2:int, param3:BezierVo)
        {
            this.frame = param1;
            this._bezierVo = param3;
            if (param2 >= 0)
            {
                this.colorOffsetR = (param2 >> 16 & 255) / 255;
                this.colorOffsetG = (param2 >> 8 & 255) / 255;
                this.colorOffsetB = (param2 & 255) / 255;
            }
            return;
        }// end function

        public function get bezierVo() : BezierVo
        {
            return this._bezierVo;
        }// end function

        public function set bezierVo(param1:BezierVo) : void
        {
            this._bezierVo = param1;
            return;
        }// end function

        public function get frame() : int
        {
            return this._frame;
        }// end function

        public function set frame(param1:int) : void
        {
            this._frame = param1;
            return;
        }// end function

    }
}
